package com.example.demo.qy.controller;

import com.example.demo.base.BaseController;
import com.example.demo.base.BaseService;
import com.example.demo.qy.model.Order;
import com.example.demo.qy.service.DemoService;
import com.example.demo.qy.service.OrderService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

//@PreAuthorize("hasAnyRole('ROLE_SHOP')")
@RestController
public class ShopCarController {

    @Autowired
    private DemoService demoService;

    @RequestMapping(value = "/shopCar",method = RequestMethod.GET)
    @ApiOperation(value = "购物车")
    public Object shopCar(){
        this.demoService.demo();
        return null;
    }

}
